package service.impl.v2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.v2.SmsVOMapper;
import model.MemberVO;
import service.v2.SmsService;
@Service
public class SmsServiceImpl implements SmsService {
	@Autowired
	private SmsVOMapper dao;

	public int checkTodayNum(String ip,int t, String tel) {
		return dao.checkTodayNum(ip,t, tel);
	}

	public int checkSmsNoTime(String ip, int type, String tel) {
		return dao.checkSmsNoTime(ip,type,tel) ;
	}
	
	@Override
	public int checkHourNum(String ip, int t, String tel) {
		return dao.checkHourNum(ip,t, tel);
	}

	public void insertSmsLog(String ip, String sms_no, String tel, int type) {
		dao.insertSmsLog( ip,  sms_no,tel, type) ;
	}

	public int checkSmsNoOutTime(MemberVO memberVO) {
		return dao.checkSmsNoOutTime(memberVO);
	}

	public int checkSmsReg(MemberVO memberVO) {
		return dao.checkSmsReg(memberVO);
	}

	public int checkSmsExit(MemberVO memberVO) {
		return dao.checkSmsExit(memberVO);
	}
}
